package com.suny.Farm.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

@Data
@Schema(description = "牧场信息VO")
public class FarmVO  implements Serializable {
    @Schema(description = "牧场ID")
    private Integer id;
    
    @Schema(description = "牲畜品种ID")
    private Integer valId;
    
    @Schema(description = "牧场名称")
    private String name;
    
    @Schema(description = "场地规模(平方米)")
    private Integer area;
    
    @Schema(description = "养殖规模")
    private Integer breedingScale;
    
    @Schema(description = "存栏量")
    private Integer amountLivestock;
    
    @Schema(description = "城市")
    private String city;
    
    @Schema(description = "省份")
    private String province;
    
    @Schema(description = "区县")
    private String district;
    
    @Schema(description = "详细地址")
    private String detailedAddress;
    
    @Schema(description = "纬度")
    private BigDecimal latitude;
    
    @Schema(description = "经度")
    private BigDecimal longitude;
    
    @Schema(description = "牧场状态(1:启用,0:停用)")
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "创建时间")
    private Date createdTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "更新时间")
    private Date updatedTime;
    
    @Schema(description = "牲畜品种名称")
    private String valValue;
} 